<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta charset="utf-8">
    <title>Simple markers</title>
    <style>
#map-canvas, #map_canvas {
  height: 400px;
  width: 600px;
}


	</style>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
    <script>
function initialize() {

var ptMapCenterLat = 50.363882;
var ptMapCenterLon = 19.044922;
var caches = [
    [50.0, 20.02, 'cache 1'],
    [50.50, 20.12, 'cache 2']
];

  var myLatlng = new google.maps.LatLng(ptMapCenterLat, ptMapCenterLon);
  var mapOptions = {
    zoom: 8,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  
 var image = new google.maps.MarkerImage(
    'mapPointer.png',
    new google.maps.Size(32,32),    // size of the image
    new google.maps.Point(0,0), // origin, in this case top-left corner
    new google.maps.Point(16, 16)    // anchor, i.e. the point half-way along the bottom of the image
);
 

      

caches.forEach(function(cache) {

	  // console.log(cache);
	
	  var marker = new google.maps.Marker({
      position: new google.maps.LatLng(cache[0],cache[1]),
      map: map,
	  icon: image,
      title: cache[2]
  });
	
});
}

google.maps.event.addDomListener(window, 'load', initialize);

    </script>
  </head>
  <body>
    <div id="map-canvas"></div>
  </body>
</html>
